﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Bit.Art.Core.Models
{
    /// <summary>
    /// 提现申请
    /// </summary>
    public class WithdrawRequest
    {
        /// <summary>
        /// 主键
        /// </summary>
        public Guid Id { get; set; }

        /// <summary>
        /// 币种
        /// </summary>
        public string Coin { get; set; }

        /// <summary>
        /// 余额
        /// </summary>
        public decimal Amount { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public int Status { get; set; }

        /// <summary>
        /// 区块链交易Id
        /// </summary>
        public string TxId { get; set; }

        /// <summary>
        /// 提现申请的处理结果
        /// </summary>
        public string Description { get; set; }

        /// <summary>
        /// 创建日期
        /// </summary>
        public DateTime CreatedDate { get; set; }

        /// <summary>
        /// 最后修改日期
        /// </summary>
        public DateTime LastModified { get; set; }

        /// <summary>
        /// 最后修改人
        /// </summary>
        public string LastModifiedBy { get; set; }

        /// <summary>
        /// 处理进度
        /// </summary>
        public enum ProcessStatus
        {
            /// <summary>
            /// 等待审批
            /// </summary>
            Pending = 0,
            /// <summary>
            /// 审批拒绝
            /// </summary>
            Rejected = 1,
            /// <summary>
            /// 通过审批
            /// </summary>
            Approved = 2,
            /// <summary>
            /// 已打款
            /// </summary>
            Sent = 3
        }
    }
}
